export {}

function  reverse(param:string|number):string{

    // const strparm = <string>param  //react
    const strparm = param as string

    const charArray:string[] = strparm.split('')
    
    return charArray.reverse().join("")

    return ""
   

}

// 123456     654321
// "123456"    ["1","2","3","4","5","6"] ==> "654321"
console.log(reverse("123456"));




